import fetch from '@/config/fetch'

/**
 * 登陆接口
 */
export const login = data => fetch('/admin/v1/login', data, 'POST');
/**
 * 退出登陆接口
 */
export const signout = (data) => fetch('/admin/v1/logout',data,'POST');
/**
 *获取用户列表
 */
export const getUsers = (data) => fetch('/admin/v1/users',data,"GET","GET");
/**
 *获取某个用户
 */
export const getUser = (id,data) => fetch('/admin/v1/users/'+id,data,"GET","GET");
/**
 * 审核用户
 */
export const checkUser = (id,data) => fetch('/admin/v1/users/'+ id +'/auth', data, 'post');
